package contraintes;

import java.util.Date;

public class ContrainteDispo {
	private int id;
	private Date dateDebut;
	private Date dateFin;
	
	public int getId() {
		return id;
	}
	public Date getDateDebut() {
		return dateDebut;
	}
	public Date getDateFin() {
		return dateFin;
	}
	
	public ContrainteDispo(int id, Date dateDebut, Date dateFin) {
		this.id = id;
		this.dateDebut = dateDebut;
		this.dateFin = dateFin;
	}
	
	@SuppressWarnings("deprecation")
	public String toString() {
		return "De "+dateDebut.getDate()+"/"+dateDebut.getMonth()+"/"+dateDebut.getYear()+" "+dateDebut.getHours()+":"+dateDebut.getMinutes()+" a "+dateFin.getDate()+"/"+dateFin.getMonth()+"/"+dateFin.getYear()+" "+dateFin.getHours()+":"+dateFin.getMinutes();
	}
}
